package hezi.helper;


import hezi.core.PostBean;

import java.util.Comparator;

import dz.common.TimeTool;

public class PostIdComparator implements Comparator<PostBean>{
	    @Override
	    public int compare(PostBean o1, PostBean o2) {
	    	return (int) (TimeTool.getTimeByid(o2.getId()) - TimeTool.getTimeByid(o1.getId()));
	    }

	}